<div class="M-header">
    <div>
        <span>
            <a href="{:url('Index/index')}">
                <img src="__STATIC__/index/img/head/m_logo.png" alt="">
            </a>
            <span class="M-click-location">{if condition="!empty($cur_city)"}{$cur_city}{else /}选择城市{/if}</span>
        </span>
        <span></span>
        <span>
            {if condition="!empty($realname)"}
            <a href="{:url('User/index')}" class="my">
                {$realname}
            </a>
            {else /}
            <a href="{:url('Login/loginin')}">登录</a>
            <a href="{:url('Register/register')}">注册</a>
            {/if}
            <a href="{:url('MyCart/my_cart')}" class="car">
                <span class="iconfont icon-gouwuche"></span>
                <span>{$cart_num}</span>
            </a>
        </span>
    </div>
</div>